package command;

/**
 * User: Alexander Martyushov
 * Date: 12/10/12
 * Time: 7:16 AM
 */
public class LightOffCommand implements Command{

    Light light;

    public LightOffCommand(Light light){
        this.light = light;
    }

    public void execute(){
        light.off();
    }


    public void undo() {
        light.on();
    }


}
